<html>
<head><meta charset="utf-8"><title>Module path detection in proc macroses · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Module.20path.20detection.20in.20proc.20macroses.html">Module path detection in proc macroses</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="236361381"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Module%20path%20detection%20in%20proc%20macroses/near/236361381" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Yoh Deadfall <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Module.20path.20detection.20in.20proc.20macroses.html#236361381">(Apr 27 2021 at 15:42)</a>:</h4>
<p>Hi, I made an attempt in Bevy to unify module path resolution for code generating macroses (<a href="https://github.com/bevyengine/bevy/blob/03173641b6185f6f988570ab960c96e6fdf2063b/crates/bevy_macro_utils/src/lib.rs#L38-L49">https://github.com/bevyengine/bevy/blob/03173641b6185f6f988570ab960c96e6fdf2063b/crates/bevy_macro_utils/src/lib.rs#L38-L49</a>)</p>



<a name="236361676"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Module%20path%20detection%20in%20proc%20macroses/near/236361676" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Yoh Deadfall <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Module.20path.20detection.20in.20proc.20macroses.html#236361676">(Apr 27 2021 at 15:44)</a>:</h4>
<p>The problem is that it fails when running clippy. For some reason <code>CARGO_PRIMARY_PACKAGE</code> isn't specified. The same applies for WASM and Android compilation pipelines. Is it a bug, and where to report it if so?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>